package io.openjob.server.admin.request.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author stelin swoft@qq.com
 * @since 1.0.0
 */
@Data
@ApiModel
public class AddAppRequest {
    @NotNull
    @ApiModelProperty(value = "App namespace id", required = true)
    private Long namespaceId;

    @NotBlank
    @ApiModelProperty(value = "App name", required = true)
    private String name;

    @ApiModelProperty(value = "App desc", required = true)
    private String desc = "";
}
